Repository navigation
test(cli,showcase): two nightly-tier tests read the product as merged: the R5 field group, and no stage strip - #36028
Conversation
… parent field group Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv
…drawn today Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv
…absence Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
…redWhen one tries a save first The grid draws no blank entry row any more, so each spec clicks Add line before it drives a row; a new line's required cells read red only once a save of the form was tried, so the requiredWhen spec tries one first. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv
|
repo:objectstack#1 · os-sales · session_01L6bhgW85kwjGaz7HqsmEuv Final green head · 2026-11-21T09:23Z · area b1-DB
|
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读
席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat landing · 2026-11-21T09:26Z · The b1-DB area's PR for #36007 (p1, nightly tiers red): tests only, six spec files brought in line with intended merges, no product change. The CLI clean fixture now declares a parent field group, as #35921 R5 wants; |
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgW85kwjGaz7HqsmEuv
Fixes #36007
Clause-②: no (tests only)
Metadata-protocol: none
Skills-docs: none
维护者速读
What changes
Six test files lag merges that changed the product on purpose. The product is not touched; each test now reads what the product draws today.
packages/cli/test/lint-strict-warnings.e2e.test.ts. Since the change that made a parent field group, not the FK'sinlineEdit, satisfyrelationship/line-items-inline-edit(R5,packages/lint/src/data-model-rules.ts), thecleanfixture drew one suggestion andtotalwas 1. The fixture'sadviseMasterknob now also gives the parent invoice a field group that places the line (fieldGroups: [{ key: 'lines', label: 'Lines', relatedList: 'NS_line' }]).inlineEdit: truestays: it still picks the form factor, and is spec-legal. Thestack()doc comment says which two suggestionsadviseMaster: falseproduces now. Every row of the header table was re-measured on this branch (os lint --jsonon each generated fixture); no row moved:protocol/missing-engines-range,relationship/master-detail-requiredrelationship/delete-behavior,relationship/line-items-inline-editlist-view-field-unknown,protocol/missing-engines-rangeexamples/app-showcase/e2e/detail-shapes.spec.ts. The default record page no longer draws theRecord pathstage strip or theRecord highlightskey-field strip. The stage now shows as the header tagdata-record-stage-tag=FIELD, and highlighted fields stay in their groups. The record page also has a tab row (data-record-tab=ID) and the 概览 rail (RecordSummaryRail). Each check was verified against the ui source and a real run:Active(fromstageField: 'status'), and both strips are asserted absent. Highlighted members stay in their groups: Status is in Basics, and amount4,200is hidden with Budget inside the collapsed Money group, then visible once it is opened. Group icon, description and the$currency checks are unchanged. Dropped: "the strip does not repeat the record title". The strip it tested no longer exists.overview. TherelatedList: 'primary'lists (Invoices, Projects) are body tables with no tab of their own, and a new positive control (showcase_contact.accounttab present) shows that this absence check uses a real id. The Contacts rail card reads Carl Fox through[data-record-summary-row], and the footer and$25,000,000checks remain (now scoped to the details). Dropped: "no tier draws a tab strip", which the tab row made false; "动态 is the last right-column panel (data-record-timeline-panel)", because the rail has no such panel (its activity card is hidden when there is no activity); and the "ungrouped / Contoso declares no fieldGroups / Basics count 0" shape, becauseshowcase_accountnow declares fieldGroups and it is replaced by "its Profile group renders".Four Console live specs (
ui/e2e/live/, run nightly byexamples/app-showcase/test/console-live-specs.live.test.ts). These were not yet red on the 2026-11-21 nightly (run 44871440181 at98b3f87e). They failed 4 of 28 on141a826f. Each one waited for a first line-row input in an empty grid (getByTestId('line-items') input[aria-label="Qty"]), and the page shows instead the empty-grid hintNo items yet — click "Add line" to begin.above theAdd linebutton. Cause: ec24363 (#35998), which removed the always-present blank ("ghost") entry row fromGridFieldon purpose (fixes #35507). An empty editable grid now shows that hint, and Add appends a line and focuses it. With Add clicked first, three specs pass unchanged, which shows the Add path and the defaults path (32409a9, #35984) still work: the rows appear, the product pick auto-fills, the computed amount, document totals and the atomic batch are correct, and the upload persists. The fourth spec had a second, also intended cause. Since 32409a9 (#35984,newRowRequiredShown={saveTried}inMasterDetailForm, from #35816 / #35940), a line just added reads no required cell red until a save of the form is tried, and arequiredWhenverdict goes through the samerequiredflag. Each spec keeps its intent:form-view-subforms.spec.ts: clicks Add line (sharedaddLineItemhelper), then picks the product on the new row. The docblock bullet "the trailing ghost row, no Add line click" now reads "Add line appends an editable row". The final assertion, exactly one line persisted, now means "the one line added and filled", not "the empty ghost was not persisted".grid-file-upload.spec.ts: clicks Add line before it looks for the row's Receiptinput[type=file]. The "materialise the ghost row" comment is reworded.grid-parent-rules.spec.ts: clicks Add line before it fills Qty and observes theparent.status == 'paid'lock.grid-conditional-rules.spec.ts: clicks Add line, fills Qty 2, then tries a save (md-form-submit, refused because the header is empty). A CONTROL then asserts that the line's always-required empty Product reads red, so the flags are live and the next absence check is a real verdict. The per-rowrequiredWhenchecks are unchanged: Description is not flagged at qty 2, is flagged at qty 100, and clears once filled.Tests
CLI e2e: red on main, green on the branch
OS_TEST_TIERS=nightly pnpm --filter @objectstack/cli exec vitest run --maxWorkers=2 test/lint-strict-warnings.e2e.test.tsOn main (
141a826ffile):On the branch:
Showcase live tier: red on main, green on the branch
Run the way the nightly shard runs it: build the showcase dependency closure,
pnpm console:build, thenOS_TEST_TIERS=nightly pnpm --filter @objectstack/example-showcase test(showcase-smoke.live.test.tsspawnsplaywright testagainst a realserve --devbackend). One difference from CI: Chromium is the preinstalled/opt/pw-browsers/chromiumviaOS_TEST_CHROMIUM_EXECUTABLE_PATH, notplaywright install --with-deps.On main (
141a826fspec,playwright test e2e/detail-shapes.spec.ts, CI=1):On the branch (
391fd92c), the nightly command:Console live specs: red on main, green on the branch
The four specs were run alone against a stand built the way
console-live-specs.live.test.tsbuilds one:ui/e2e/live/ci/start-backend.shon :4517, the Console built withVITE_BASE_PATH=/, andvite previewon :5517.On main (
141a826fspecs):With Add line only,
grid-conditional-rulesstill failed atline-items-invalid-0-description(the new line waits for a save try). The other three passed. After the save-try step, all four pass.Final head: all three suites, the nightly way
At
ae632881.OS_TEST_TIERS=nightly pnpm --filter @objectstack/example-showcase testruns both live files,showcase-smokeandconsole-live-specs:OS_TEST_TIERS=nightly pnpm --filter @objectstack/cli exec vitest run --maxWorkers=2 test/lint-strict-warnings.e2e.test.ts:Typecheck:
pnpm --filter @objectstack/example-showcase typecheck && pnpm --filter @objectstack/cli typecheckexits 0 (both tsconfigs include the edited files: the showcasee2e/**/*, the CLItsconfig.test.jsonthroughcheck:test-typecheck).pnpm --dir ui run type-check:e2e(tsconfig.e2e.json, which coversui/e2e/**) also exits 0.Acceptance notes
Add linebutton), theGridFieldchange in ec24363, and the fact that the specs pass once they add their line. I did not bisect by rebuilding the Console at ec24363^, because the direct evidence already says which change and which assumption.@objectstack/clifilesisdist, README, CHANGELOG; the showcase is private;ui/e2e/**belongs to no package), so this PR takes theskip-changesetlabel.Verification
Read first: the
related-heavyhunk ofdetail-shapes.spec.ts(the largest rewrite, where the three dropped checks were), then the save-try step and its Product CONTROL inui/e2e/live/grid-conditional-rules.spec.ts, then thestack()fixture inlint-strict-warnings.e2e.test.ts.Two-minute check:
OS_TEST_TIERS=nightly pnpm --filter @objectstack/cli exec vitest run test/lint-strict-warnings.e2e.test.tsshould printTests 8 passed (8).🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv